#ifndef INCLUDES_H_
#define INCLUDES_H_

#include <d3d9.h>
#include <d3dx9.h>

#ifndef SAFE_RELEASE
#define	SAFE_RELEASE(p)		{if(p){p->Release(); p = NULL;}}
#endif
#ifndef SAFE_DELETE
#define	SAFE_DELETE(p)		{if(p){delete p; p = NULL;}}
#endif
#ifndef SAFE_DELETE_ARRAY
#define	SAFE_DELETE_ARRAY(p){if(p){delete [] p; p = NULL;}}
#endif

#ifndef DXERROR
#define DXERROR(a)	{MessageBox(GetDesktopWindow(), a, "DirectX ERROR", MB_OK | MB_ICONEXCLAMATION); return false; }
#endif
#ifndef DIERROR
#define DIERROR(a)	{MessageBox(GetDesktopWindow(), a, "DirectInput ERROR", MB_OK | MB_ICONEXCLAMATION); return false; }
#endif
#ifndef DATAERROR
#define DATAERROR(a){MessageBox(GetDesktopWindow(), a, "Data ERROR", MB_OK | MB_ICONEXCLAMATION);}
#endif

#define DEFAULT_WINDOWED_WIDTH 800
#define DEFAULT_WINDOWED_HEIGHT 600

#include <stdio.h>
//#include <ctime>
//#include "Camera.h"
//#include "Timer.h"

#endif /*INCLUDES_H_*/